package chen.huai.jie.spring.xmlconfig.db.jpa.repository;

import chen.huai.jie.spring.xmlconfig.db.jpa.entity.Student;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

public interface JpaStudnetRepository extends PagingAndSortingRepository<Student, String>, JpaSpecificationExecutor<Student> {

    List<Student> findByNameOrderByNameDesc(String name);

    List<Student> findByNameOrderByNameAsc(String name);
}
